<?php
ob_start();
error_reporting(0);
include ('common/connection.php');
include('config/config.php');
$origin=$_REQUEST['origin'];
?>
<html>
<head>
<style type="text/css">
.style1{
       font-family:verdana,arial;
       font-weight:bold;
       font-size:12px;
       color: white;
}
.style11{
       font-family:verdana,arial;
       font-weight:bold;
       font-size:15px;
       color: white;
}

.style12{
       font-family:verdana,arial;
       font-weight:bold;
       font-size:12px;
       color: green;
}
.textD{
	FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: lucida grande, tahoma, verdana, arial, sans-serif; TEXT-DECORATION: none 
}
.text_D2 {
	FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: lucida grande, tahoma, verdana, arial, sans-serif; TEXT-DECORATION: none
}
.text_CIDDom {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: lucida grande, tahoma, verdana, arial, sans-serif; font-weight:normal; TEXT-DECORATION: none
}
.top_border {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #009ACE;
}
.textPAGD {
	FONT-SIZE: 11px; COLOR:#0099CC ; FONT-FAMILY: lucida grande, tahoma, verdana, arial, sans-serif; TEXT-DECORATION: underline 
}
</style>
</head>
<script language="javascript">
function selectuser()
{
	
	document.form1.action="containeradmins.php?area=user&action=report";
	document.form1.submit();
	
}
</script>
<table width="100%" align="center" cellspacing="1">
  <tr>
    <td colspan="11" align="center" bgcolor="#D5F4DD" class="top_border"><table width="100%" border="0" cellspacing="0">
      <tr>
        <td align="center"><font color="#006699" face="Georgia, Times New Roman, Times, serif"><strong>Paid Entry Report</strong></font></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="11"><form name="form1" action="#" method="post">
      <table width="100%" border="0">
        <tr bgcolor="#f8f8f8" height="20">
          <td width="21%" align="center"><br></td>
          <td width="28%" align="center"><input type="text" name="origin" id="origin"></td>
          <td width="20%" align="center"><input type="submit" name="button" id="button" value="Search"></td>
          <td width="31%" align="center">&nbsp;</td>
        </tr>
      </table>
    </form></td>
  </tr>
  <tr>
  	<td colspan="11" align="center"><?php if($mess==1){echo "<font face='Verdana, Arial, Helvetica, sans-serif' color='#006633' size='2px'>User Paid Successful<font>";}elseif($mess==2){echo "<font face='Verdana, Arial, Helvetica, sans-serif' color='#FF0000' size='2px'>User Paid UnSuccessful<font>";}else{echo "";}?></td>
  </tr>
  <form name="form2" action="containeradmin.php?area=user&action=report_do" method="post">
    <tr bgcolor="#99CCCC">
      <td width="7%" align="center"><span class="text_D2">ID.</span></td>
      <td width="6%" align="center"><span class="text_D2">Group</span></td>
      <td width="3%" align="center"><span class="text_D2">Batch</span></td>
      <td width="5%" align="center"><span class="text_D2">Gender</span></td>
      <td width="21%" align="center"><span class="text_D2">Full Name</span></td>
      <td width="13%" align="center"><span class="text_D2">Nick Name</span></td>
      <td width="10%" align="center"><span class="text_D2">Cell</span></td>
      <td width="14%" align="center"><span class="text_D2">Email</span></td>
      <td width="12%" align="center"><span class="text_D2">Registration Amount</span></td>
      <td width="5%" align="center"><span class="text_D2">Spouse</span></td>
      <td width="4%" align="center"><span class="text_D2">Status</span></td>
    </tr>
    <?php
	if($origin!='')
	{
	$queryReport="SELECT * FROM users WHERE `verify`='$origin'";		
	$resultReport=mysql_db_query($db_name,$queryReport);
	$rsReport=mysql_fetch_array($resultReport);
	}
	
?>
    <tr bgcolor="<?php echo $bgcol; ?>" height="20">
      <td align="center"><span class="text_D2"><?php echo $rsReport['verify'];?></span></td>
      <td width="6%" align="center"><span class="text_D2"><?php $group=$rsReport['group']; if($group==1){echo "Science";}elseif($group==2){echo "Commerce";}elseif($group==3){echo "Arts";}?></span></td>
      <td width="3%" align="center"><span class="text_D2"><?php echo $rsReport['batch'];?></span></td>
      <td width="5%" align="justify"><span class="text_D2"><?php $gender=$rsReport['gender']; if($gender==1){echo "Male";}elseif($gender==2){echo "Female";}?></span></td>
      <td width="21%" align="justify"><span class="text_D2"><?php echo $rsReport['f_name'];?></span></td>
      <td width="13%" align="left"><span class="text_D2"><?php echo $rsReport['n_name'];?></span></td>
      <td width="10%" align="justify"><span class="text_D2"><?php echo $rsReport['cell_num'];?></span></td>
      <td width="14%" align="center"><span class="text_D2"><?php echo $rsReport['email'];?></span></td>
      <td width="12%" align="center"><span class="text_D2"><?php echo $rsReport['amount']?></span></td>
      <td width="5%" align="center"><?php $opt2=$rsReport['spouse']; if($opt2==''){echo "No";} else echo "Yes";?></td>
      <td width="4%" align="center"><input type="checkbox" name="status" value="1"<?php if($rsReport['status']==1)echo "Checked";?> /></td>
    </tr>   
 
  <tr bgcolor="#f8f8f8" height="20">
    <td colspan="6" align="center">&nbsp;</td>
    <td align="center">&nbsp;</td>
    <td align="center">&nbsp;</td>
    <td align="center">&nbsp;</td>
    <td align="center">&nbsp;</td>
    <td align="center">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="11" align="center"><input type="submit" name="Submit" value="Update"><input type="hidden" name="uid" value="<?php echo $rsReport['id'];?>" /><input type="hidden" name="origin" value="<?php echo $origin;?>"><input type="hidden" name="mail" value="<?php echo $rsReport['email'];?>"></td>
  </tr>
   </form>
  <tr>
    <td colspan="11" align="center">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="11" align="center">&nbsp;</td>
  </tr>
</table>
